<%@page import="cl.utalca.robot.domain.LanguageDTO"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/resources/css/bootstrap.css" />
<title>Prueba del Sistema</title>
</head>
<body>

	<div class="container-fluid">
		
		<ul class="breadcrumb">
			<li><a href="<%=request.getContextPath()%>">Home</a> <span class="divider">/</span></li>
			<li class="active">Prueba del Sistema</li>
		</ul>
		<div class="page-header centered">
			<h1>Prueba del Sistema</h1>			
		</div>


		<form:form cssClass="form-horizontal" modelAttribute="uploadItem" enctype="multipart/form-data" method="post">
		
			<div class="control-group">
				<form:label cssClass="control-label" for="fileInput" path="file">Archivo</form:label>
				<div class="controls">
					<form:input id="fileInput" type="file" path="file"
						title="Seleccionar archivo a subir"/>
				</div>
			</div>
			
			<div class="control-group">
				<form:label class="control-label" for="sel-languages" path="languageId">Lenguaje</form:label>
				<div class="controls">
					<form:select id="sel-languages" path="languageId">
						<c:forEach items="${languageList}" var="language">
							<option value="${language.id}">${language.languageName}</option>
						</c:forEach>
					</form:select>					
				</div>
			</div>
			
			<div class="control-group">
				<div class="controls">
					<button class="btn btn-primary" type="submit">Ejecutar Prueba</button>
				</div>
			</div>
		</form:form> 
		
		
<%-- 		<form class="form-horizontal" action="test"  --%>
<%-- 			enctype="multipart/form-data" method="post"> --%>

<!-- 			<div class="control-group"> -->
<!-- 				<label class="control-label" for="fileInput">Subir Archivo</label> -->
<!-- 				<div class="controls"> -->
<!-- 					<input id="fileInput" type="file" -->
<!-- 						title="Seleccionar archivo a subir" name="file" /> -->
<!-- 				</div> -->
<!-- 			</div> -->

<!-- 			<div class="control-group"> -->
<!-- 				<label class="control-label" for="sel-languages">Lenguaje</label> -->
<!-- 				<div class="controls"> -->
<!-- 					<select id="sel-languages" name="languageId"> -->
<%-- 						<c:forEach items="${languageList}" var="language"> --%>
<%-- 							<option value="${language.id}">${language.languageName}</option> --%>
<%-- 						</c:forEach> --%>
<!-- 					</select>					 -->
<!-- 				</div> -->
<!-- 			</div> -->

<!-- 				<div class="control-group"> -->
<!-- 					<div class="controls"> -->
<!-- 						<button class="btn btn-primary" type="submit">Ejecutar Prueba</button> -->
<!-- 					</div> -->
<!-- 				</div> -->
<%-- 		</form> --%>
	</div>
	
	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="<%=request.getContextPath()%>/resources/js/bootstrap.file-input.js"></script>
</body>
</html>